package com.sdweizan.sdk.bytedance.api.impl;

import com.alibaba.fastjson.TypeReference;
import com.sdweizan.sdk.bytedance.api.BdApiService;
import com.sdweizan.sdk.bytedance.api.BdMiniAppService;
import com.sdweizan.sdk.bytedance.bean.bill.BdTradeBillRequest;
import com.sdweizan.sdk.bytedance.bean.bill.BdTradeBillResponse;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public class BdBillService {
  private final BdApiService bdApiService;

  public BdTradeBillResponse queryTradeBill(BdTradeBillRequest bdTradeBillRequest)
      throws Exception {
    return bdApiService.get(bdTradeBillRequest, new TypeReference<BdTradeBillResponse>() {});
  }
}
